<?php

namespace App\Controller\App;

use App\Base\BaseController4App;
use App\Entity\Pages;
use App\Model\GradeCategoryModel;
use App\Model\LazyCommon\CCM;
use App\Model\LazyCommon\RulesModel;
use App\Model\LazyCommon\UserModel;
use App\Model\SubjectModel;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;

/**
 * @route("/app")
 */
class PageController extends BaseController4App
{

    /**
     * @route("/Pages/{id}",name="AppGetConfig")
     */
    public function AppGetConfig(Pages $pages)
    {
        $pages = $this->toArray($pages);
        $pages["content"] = $this->dealWithImgInHtml($pages["content"]);
        return $this->json_out(1,"OK",$pages);
    }

}
